package a_obsolete;
import java.sql.SQLException;
import junit.framework.TestCase;

/**
 * AdminTest
 * JUnit tests the Add New Admin method
 *
 *
 *  Date           	Name            	Action
 *  --------------------------------------------------------------------------------------
 *	04/07/11		Matt			Made JUnit Test Class
 *
 *
 *
 */
public class AdminTest extends TestCase {
	
	
	/**
	 * Run the boolean addNewAdmin(String,String,String,String,String) method test.
	 *
	 * @throws Exception
	 *
	 */
	public void testAddNewAdmin_1() throws Exception {
		String fN = "Jeremy";
		String lN = "Jeremiah";
		String ID = "JJdouble22";
		String pW = "iamJJ";
		String eM = "JJ@gmail.com";
		String existingID = "zlee6";
		String existingID2 = "MC OOPer";
		String existingID3 = "psex";
		String existingID4 = "BSumner";
			
		//Test case where all new information is added for a new admin
		//boolean shouldBeTrue = database.addNewAdmin(fN, lN, ID, pW, eM);
        //assertEquals(true, shouldBeTrue);
        
        
        //Test case where an existing user is attempted to be admined
        //boolean shouldBeFalse = database.addNewAdmin(fN, lN, existingID, pW, eM);
        //assertEquals(false,shouldBeFalse);
        
        //Test case where a second existing user is chosen to be an admin
        //boolean shouldBeFalse_2 = database.addNewAdmin(fN, lN, existingID2, pW, eM);
        //assertEquals(false,shouldBeFalse_2);
        
        //Test case where another existing user is chosen
        //boolean shouldBeFalse_3 = database.addNewAdmin(fN, lN, existingID3, pW, eM);
        //assertEquals(false,shouldBeFalse_3);
        //Test case where a final existing user is set to be an admin.
        //boolean shouldBeFalse_4 = database.addNewAdmin(fN, lN, existingID4, pW, eM);
        //assertEquals(false,shouldBeFalse_4);
        
        
	}

}